import { Link, Outlet } from 'umi';
import styles from './index.less';
import { Counter } from '@/components/Counter';

export default function Layout() {

  // @ts-ignore
  if(window._isIframeMicro) {
    return <Outlet />;
  }

  return (
    <div className={styles.navs}>
      <span>这里是子模块3</span>
      <Counter />
      <ul>
        <li>
          <Link to="/">Home</Link>
        </li>
        <li>
          <Link to="/docs">Docs</Link>
        </li>
        <li>
          <Link to="/page3">page3</Link>
        </li>
        <li>
          <Link to="/page4">page4</Link>
        </li>
      </ul>
      <div className={styles['page-container']}>
        <Outlet />
      </div>
    </div>
  );
}
